/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.mldn.demo;

/**
 *
 * @author Administrator
 */
public class OverrideDemo04 {
    public static void main(String[] args) {
        new Student02().fun();
    }
}

class Person02{
    private void print(){
        System.out.println("Person02->void print(){}");
    }
    public void fun(){
        this.print();
    }
}

class Student02 extends Person02{
    void print(){
        System.out.println("Student02-> void print(){}");
    }
}